package com.hjy.remote;

import com.hjy.common.result.Result;
import com.hjy.common.result.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("hjy-user")
public interface SysUserRemote {

    /**
     * 发送手机号
     */
    @GetMapping("/sysUser/send/{tel}")
    public Result<User> send(@PathVariable("tel") String tel);

    /**
     * 登录
     */
    @PostMapping("/sysUser/login")
    public Result<User> login(@RequestBody User user);
}
